package com.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.blog.bean.Discuss;

/**
 * @className: IDiscussDao
 * @description: 
 * @author: HCl
 * @createTime: 2020年5月26日 下午8:20:05
 */
@Repository

@Mapper
public interface IDiscussDao {
	
	public Discuss selectDiscussById(Integer id);
	public List<Discuss> selectShareDiscussByUserId(int id);
	public List<Discuss> selectBlogDiscussByUserId(int id);
	public List<Discuss> selectBlogDiscussById(int id);
	public List<Discuss> selectShareDiscussById(int id);
    public int addBlogDiscuss(Discuss discuss);
    public int addShareDiscuss(Discuss discuss);
    public int deleteDiscussById(Integer id);
	
}
